import request from '@/utils/request'

// 查询外聘人员列表
export function listExternalPerson(query) {
  return request({
    url: '/hrmanagement/ExternalPerson/list',
    method: 'get',
    params: query
  })
}

// 查询外聘人员详细
export function getExternalPerson(id) {
  return request({
    url: '/hrmanagement/ExternalPerson/' + id,
    method: 'get'
  })
}

// 新增外聘人员
export function addExternalPerson(data) {
  return request({
    url: '/hrmanagement/ExternalPerson',
    method: 'post',
    data: data
  })
}

// 修改外聘人员
export function updateExternalPerson(data) {
  return request({
    url: '/hrmanagement/ExternalPerson',
    method: 'put',
    data: data
  })
}

// 删除外聘人员
export function delExternalPerson(id) {
  return request({
    url: '/hrmanagement/ExternalPerson/' + id,
    method: 'delete'
  })
}
